package com.xinruke.hostels.reservation.interfaces.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author GuoZheng
 * @ClassName DiscountsMakeUpQueryDTO
 * @date：2019/7/3
 * @version: V1.0.0
 * @description：
 */
@Data
@ApiModel("入住更新优惠次数请求DTO")
public class DiscountsMakeUpQueryDTO {



    /**
     * 证件类型
     */
    @ApiModelProperty(value = "证件类型",required = true)
    @NotNull(message = "证件类型不能为空")
    private Byte zhengjianleixing;

    /**
     * 证件号
     */
    @ApiModelProperty(value = "证件号",required = true)
    @NotBlank(message = "证件号不能为空")
    private String zhengjianhao;

    /**
     * 证件号
     */
    @ApiModelProperty(value = "预订人会员id",required = true)
    @NotNull(message = "预订人会员id不能为空")
    private Integer huiyuanId;



    /**
     * 预订离开时间
     */
    @ApiModelProperty(value = "预订离开时间",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @NotNull(message = "预订离开时间不能为空")
    private Date jieshushijian;


    /**
     * 离开时间
     */
    @ApiModelProperty(value = "实际离开时间",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @NotNull(message = "实际离开时间不能为空")
    private Date shijijieshushijian;



    @JsonIgnore
    private Integer dayDifferent;

    /**
     * 更新时间
     */
    @JsonIgnore
    private Date gengxinshijian = new Date();

}
